package controller.action;

import java.io.File;

import com.opensymphony.xwork2.ActionSupport;

import model.service.FileService;

public class ExcelUpload extends ActionSupport{
	private String className;
	private String result;
	private FileService fileService;
	private  File file;
	private String fileFileContentType;  
	private String fileFileName;
	private String epId;
	
	
	public void setEpId(String epId) {
		this.epId = epId;
	}
	public String getResult() {
		return result;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public void setFileService(FileService fileService) {
		this.fileService = fileService;
	}
	public void setFile(File file) {
		this.file = file;
	}
	public void setFileFileContentType(String fileFileContentType) {
		this.fileFileContentType = fileFileContentType;
	}
	public void setFileFileName(String fileFileName) {
		this.fileFileName = fileFileName;
	} 
	public String upload()
	{
		result = fileService.ExcelUpload(file, fileFileName, className,epId);
		return SUCCESS;
	}
}
